package com.ruoyi.file.utils;


public class KaifangqianApiClient{ /*
    public static void main(String[] args) {
        // Initialize Unirest
        Unirest.config()
                .connectTimeout(0)
                .socketTimeout(0)
                .automaticRetries(true);

        try {
            // Make the API request
            HttpResponse<String> response = Unirest.post("https://home.kaifangqian.com/resrun-paas/kaifangqian/openAPI/V2/document/file")
                    .header("sign", "123456")
                    .header("Content-Type", "application/json")
                    .body("{\n    \"appAuthToken\": \"\",\n    \"uniqueCode\": \"09d233BE-324A-726C-aE3F-c78a871dF23B\",\n    \"file\": \"JVBERi0xLjcKJcKzx9gNCjMgMCBvYmoNPDwvQXV0aG9yIChsZW5vdm8pIC9Db21tZW50cyAoKSAvQ29tcGFueSAoKSAvQ3JlYXRpb25EYXRlIChEOjIwMjQwMTExMTQ1ODA2KzA2JzU4JykgL0NyZWF0b3IgKP...\",\n    \"fileName\": \"劳动合同\",\n    \"fileSuffix\": \".pdf\"\n}")
                    .asString();

            // Process the response
            if (response.isSuccess()) {
                System.out.println("API call successful!");
                System.out.println("Response: " + response.getBody());
            } else {
                System.out.println("API call failed with status: " + response.getStatus());
                System.out.println("Error: " + response.getStatusText());
                if (response.getParsingError().isPresent()) {
                    System.out.println("Parsing error: " + response.getParsingError().get().getMessage());
                }
            }
        } catch (Exception e) {
            System.err.println("Exception occurred during API call:");
            e.printStackTrace();
        } finally {
            // Clean up
            try {
                Unirest.shutDown();
            } catch (Exception e) {
                System.err.println("Error shutting down Unirest:");
                e.printStackTrace();
            }
        }
    }*/
}